<!--{include wap_header}-->
<header class="">
	<h2><a href="my.php">账户详情</a>&nbsp;|&nbsp;邀请返利</h2>
</header>
<div style="width:100%;background-color:#FFF; margin:5px 0 0; padding:5px 0; border-bottom:1px solid #CCC;">
<div class="info" style="margin:4% auto; width:92%;">
	<h4 style="margin-bottom:10px;">这是您的专用邀请链接，请通过 MSN 或 QQ 发送给好友：</h4>
	<input id="share-copy-text" type="text" value="{$INI['system']['wwwprefix']}/wap/r.php?r={$mail}" style="width:98%;" class="f-input" onfocus="this.select();" tip="复制成功，可以通过 MSN 或 QQ 发送给好友了" />
</div>
</div>

<div class="my-list">
	<ul> 
		<li>
			<label>已付款订单佣金</label>
			<p id="balance">{$total_money}元</p>
		</li> 
		<li onclick="shownumber('numberdiv');">
			<label>我的邀请会员</label>
			<p>{$total_count}&nbsp;&nbsp;></p>
		</li>
		<div id="numberdiv" style="display:none;">
			<ul>
				<li onclick="shownumber('fusers');" style="border-bottom: 1px #CCC dashed;">
					<label>一级会员</label>
					<p>{$fcount}&nbsp;&nbsp;></p>
				</li>
				<div id="fusers" style="display:none;">
					<ul>
		                <!--{if $fusers}-->
		                <!--{loop $fusers $index $fuser}-->
		                <a href="myrefer_record.php?uid={$fuser['id']}"><li style="border-bottom: 1px #CCC dotted; margin-left:20px;">
		                <!--{if $fuser['avatar']}-->
		                <img src="/static/{$fuser['avatar']}" width="20" height="20"/>
		                <!--{else}-->
		                <img src="/static/images/default_nick.png" width="20" height="20"/>
		                <!--{/if}-->
		                <label>{$fuser['username']}</label><p>{$fanli[$fuser['id']]}元&nbsp;&nbsp;></p></li></a>
		                <!--{/loop}-->
		                <!--{/if}-->
					</ul>
				</div>
				<li onclick="shownumber('susers');" style="border-bottom: 1px #CCC dashed;">
					<label>二级会员</label>
					<p>{$scount}&nbsp;&nbsp;></p>
				</li>
				<div id="susers" style="display:none;">
					<ul>
		                <!--{if $susers}-->
		                <!--{loop $susers $index $suser}-->
		                <a href="myrefer_record.php?uid={$suser['id']}"><li style="border-bottom: 1px #CCC dotted; margin-left:20px;">
		                <!--{if $suser['avatar']}-->
		                <img src="/static/{$suser['avatar']}"  width="20" height="20"/>
		                <!--{else}-->
		                <img src="/static/images/default_nick.png"  width="20" height="20"/>
		                <!--{/if}-->
		                <label>{$suser['username']}</label><p>{$fanli[$suser['id']]}元&nbsp;&nbsp;></p></li></a>
		                <!--{/loop}-->
		                <!--{/if}-->
					</ul>
				</div>
				<li onclick="shownumber('tusers');" >
					<label>三级会员</label>
					<p>{$tcount}&nbsp;&nbsp;></p>
				</li>
				<div id="tusers" style="display:none;">
					<ul>
		                <!--{if $tusers}-->
		                <!--{loop $tusers $index $tuser}-->
		                <a href="myrefer_record.php?uid={$tuser['id']}"><li style="border-bottom: 1px #CCC dotted; margin-left:20px;">
		                <!--{if $tuser['avatar']}-->
		                <img src="/static/{$tuser['avatar']}"  width="20" height="20"/>
		                <!--{else}-->
		                <img src="/static/images/default_nick.png"  width="20" height="20"/>
		                <!--{/if}-->
		                <label>{$tuser['username']}</label><p>{$fanli[$tuser['id']]}元&nbsp;&nbsp;></p></li></a>
		                <!--{/loop}-->
		                <!--{/if}-->
                	</ul>
                </div>
            </ul>
		</div>
		<li style="padding:0 20px;height:150px;">
			<a href="#" style="padding-left:20px;display:block;height:54px;border-bottom:1px #e1e1e1 solid;">我的二维码</a>
			<img src="http://qr.liantu.com/api.php?text={$INI['system']['wwwprefix']}/wap/r.php?r={$mail}" style="position:absolute;width:80px;height:80px;left:40px;top:60px;margin:0;"/>
		</li>
	</ul>
</div>
<script>
function shownumber(id){	
	if($('#'+id).is(':hidden')){
		  $('#'+id).css('display','block');
	}else{
		$('#'+id).css('display','none');
	}
}
</script>
<!--{include wap_footer}-->
